package com.wan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 游戏用户表
 * </p>
 *
 * @author vicente
 * @since 2021-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class GameUser extends Model<GameUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String accountNumber;

    /**
     * 密码
     */
    private String password;

    /**
     * 头像
     */
    private String faceImg;

    /**
     * 游戏角色名称
     */
    private String nickName;

    /**
     * 大区名称
     */
    private String areaName;

    private String createTime;

    /**
     * 0 男 1女
     */
    private Integer sex;

    private Integer status;

    private Integer level;

    private String signGe;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
